package io.github.yotta.logger.api.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static io.github.yotta.logger.api.properties.LogApiProperties.PREFIX;

/**
 * @author yotta
 * @date 2023/3/27 8:09
 */
@ConfigurationProperties(prefix = PREFIX)

public class LogApiProperties {

    public static final String PREFIX = "yotta.log.api.feign";

    /**
     * 对应这个属性: logManagerServiceName
     */
    public static final String SERVICE_NAME = PREFIX + ".log-manager-service-name";

    /**
     * 日志管理中心的服务名称，用于服务发现
     */
    @Getter@Setter
    private String logManagerServiceName;
}
